package br.com.afi.encoding_converter;

import java.io.IOException;

import br.com.afi.encoding_converter.console.interpreter.ConsoleEvaluator;

/**
 * Essa classe interpreta o comando e executa os métodos da classe {@link EncodingConverter)}
 * 
 * @see EncodingConverter
 * @author André de Fontana Ignacio
 * @version 1.0
 */
public class Main
{
	public static void main( String... args ) throws IOException
	{	
		final ConsoleEvaluator c = new ConsoleEvaluator( args );
		final Command command = c.evaluate();
		
		final EncodingConverter encodingConverter = new EncodingConverter();
		encodingConverter.execute( command );
		
		
		/*final EncodingConverter ec = new EncodingConverter();
		final Command command = new Command();
		
		command.setFromEncoding( EncodingConverter.ISO8859_1 );
		command.setToEncoding( EncodingConverter.UTF_8 );
		command.setFromDirectory( "C:\\Documents and Settings\\AIGNACIO\\Desktop\\down" );
		command.setFileFilterPattern( "*.*" );
		command.setToDirectory( "C:\\Documents and Settings\\AIGNACIO\\Desktop\\down\\converted" );
		command.setRecursiveFileFilter(true);
		
		ec.execute( command );*/
	}	
}
